/**
 * @date 2006-7-17
 */

package org.nanhill.xmlro.gsp.client;

import java.io.IOException;

import org.nanhill.xmlro.gsp.GspException;

/**
 * @author alin [xalinx at gmail dot com]
 * @date 2006-7-17
 */
public interface GspAgent {

	void setSlsModuleName(String slsModuleName);

	void setServiceHost(String host);

	void setServicePort(int port);

	String getServiceHost();

	int getServicePort();

	void addSLSTarget(String host, int port) throws GspException;

	void setServiceType(String serviceName, String version)
			throws GspException, IOException;

	void locate() throws GspException, IOException;

	Object doService(String command, Object body) throws GspException,
			IOException;

	void close() throws GspException, IOException;

}
